SET MATRIX

This command will change the visual properties of the matrix.

  Syntax
SET MATRIX Matrix Number, Wire, Transparency, Cull, Filter, Light, Fog, Ambient
  Parameters
Matrix Number
Integer
The matrix number
Wire
Integer
When the wireframe flag is set to 1, the matrix only shows it"s wireframe form
Transparency
Integer
When the transparency flag is set to 1, all parts of the matrix colored black are not drawn to the screen
Cull
Integer
When the cull flag is set to 0, the matrix will draw polygons normally hidden due to the direction the polygon faces
Filter
Integer
A Filter value of zero does no mipmapping, a value of one uses no smoothing and a value of two uses Linear Filtering
Light
Integer
The Light Flag activates and deactivates the matrices sensitivity to any lights in the scene
Fog
Integer
The Fog Flag activates and deactivates the matrices sensitivity to fog in the scene
Ambient
Integer
he Ambient Flag activates and deactivates the matrices sensitivity to ambient light in the scene

  Returns

This command does not return a value.

  Description

When the wireframe flag is set to 1, the matrix only shows it"s wireframe form. When the transparency flag is set to 1, all parts of the matrix colored black are not drawn to the screen. When the cull flag is set to 0, the matrix will draw polygons normally hidden due to the direction the polygon faces. The Filter Value sets the texture filtering, which controls the smoothing effect of the texture as it is mapped to the object. A Filter value of zero does no mipmapping, a value of one uses no smoothing and a value of two uses Linear Filtering. The Light Flag activates and deactivates the matrices sensitivity to any lights in the scene. The Fog Flag activates and deactivates the matrices sensitivity to fog in the scene. The Ambient Flag activates and deactivates the matrices sensitivity to ambient light in the scene. The matrix number and flag values should be specified using integer values.

  Example Code
position camera 0,300,0
autocam off
make matrix 1,1000,1000,25,25
position matrix 1,0,0,0
randomize matrix"
set matrix 1,1,0,0,0,0,0,0
update matrix 1
while inkey$()<>"x"
x#=x#+mousemovey()
y#=y#+mousemovex()
rotate camera x#,y#,0
if mouseclick()=1 then move camera 1
if mouseclick()=2 then move camera -1
update matrix 1
endwhile
if matrix exist(1)=1 then delete matrix 1
end
  See also

MATRIX Commands Menu
Index